﻿using System.Collections.Generic;
using System.Linq;
using System.Web.Mvc;

namespace WebApp.Areas.Admin.Controllers
{
    public class SharedController : Controller
    {
        public SharedController()
        {
        }

        public PartialViewResult _layoutLeft()
        {
            //var result=new List<DtNavigation>();
           
            //     result = GetNavigationList().Where(x => x.ParentId == 0).OrderBy(x => x.SortId).ToList();
            //    ViewBag.Child = GetNavigationsChild(result.FirstOrDefault().Id.ToString());
            
         

            return PartialView();
        }

        public PartialViewResult _LayoutTop()
        {
            //var result = GetNavigationList().Where(x => x.ParentId == 0).OrderBy(x => x.SortId).ToList();
            //if (result.Count > 0)
            //{
            //    ViewBag.Child = GetNavigationsChild(result.FirstOrDefault().Id.ToString());

            //    return PartialView(result);
            //}
            return PartialView();
        }

      








       
    }
}